package com.jerkin.jieba;

import com.huaban.analysis.jieba.JiebaSegmenter;
import com.huaban.analysis.jieba.SegToken;
import com.huaban.analysis.jieba.WordDictionary;

import java.util.List;
import java.util.Locale;

/**
 * @description:
 * @className:JieBaTest
 * @author:huhongzhi
 * @createTime:2021/3/15 10:07
 * @version:1.0
 */
public class JieBaTest {

    public static void main(String[] args) {
        WordDictionary.getInstance();
        WordDictionary.getInstance().freqs.put("蘑菇钉", Double.parseDouble("1"));
        JiebaSegmenter segmenter = new JiebaSegmenter();
        List<SegToken> list = segmenter.process("A6 蘑菇钉促销装",JiebaSegmenter.SegMode.SEARCH);
        System.out.println(list);
    }

}